<?php if (!defined('THINK_PATH')) exit(); /*a:7:{s:100:"/Applications/mampstack/apache2/htdocs/cps/public/../application/index/view/channellist/details.html";i:1508313868;s:93:"/Applications/mampstack/apache2/htdocs/cps/public/../application/index/view/public/title.html";i:1506496282;s:91:"/Applications/mampstack/apache2/htdocs/cps/public/../application/index/view/public/css.html";i:1503480029;s:94:"/Applications/mampstack/apache2/htdocs/cps/public/../application/index/view/public/header.html";i:1507617957;s:92:"/Applications/mampstack/apache2/htdocs/cps/public/../application/index/view/public/menu.html";i:1508228255;s:94:"/Applications/mampstack/apache2/htdocs/cps/public/../application/index/view/public/topbar.html";i:1507540206;s:90:"/Applications/mampstack/apache2/htdocs/cps/public/../application/index/view/public/js.html";i:1506499226;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title><?php echo (isset($title) && ($title !== '')?$title:"趁早CPS自助发布系统"); ?></title>
    <meta name="keywords" content="HTML5 Bootstrap 3 Admin Template UI Theme">
    <meta name="description" content="Fusion - A Responsive HTML5 Admin UI Template Theme">
    <meta name="author" content="AdminDesigns">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    
<!-- Bootstrap CSS -->
<link rel="stylesheet" type="text/css" href="/static/vendor/bootstrap/css/bootstrap.min.css">

<!-- Theme CSS -->
<link rel="stylesheet" type="text/css" href="/static/css/vendor.css">
<link rel="stylesheet" type="text/css" href="/static/css/theme.css">
<link rel="stylesheet" type="text/css" href="/static/css/utility.css">
<link rel="stylesheet" type="text/css" href="/static/css/custom.css">

<!-- Favicon -->
<link rel="shortcut icon" href="/static/img/favicon.ico">
    <style>
        .table a { color: blue;}
        dl, li { list-style:none;}
        .panel-body dt, .panel-body dd { float: left;}
        .clear {clear: both;}
        .panel-body dt { width: 7%;}
        .panel-body dd { width: 90%;}
        .panel-body dd li { float: left; min-width: 6%; padding: 0 10px;}
        .form-horizontal { padding-left: 30px;}
        .table th { width: 100px;}
    </style>
</head>
<body class="dashboard-page">

<header class="navbar navbar-fixed-top">
    <div class="navbar-branding" style="width: 400px;">
        <span id="toggle_sidemenu_l" class="glyphicons glyphicons-show_lines"></span>
        <a class="navbar-brand" href="javascript:;">
            <img src="/static/img/logo.png" />
            <span style="font-size: 12px; font-size: 16px; margin-left: 15px;">趁早CPS自助发布系统</span>
        </a>
    </div>
    <div class="navbar-right">
        <div class="navbar-menus">
            <div class="btn-group" id="alert_menu" style="max-width: 300px;">
                <div class="media" style="float: left;">
                    <a class="pull-left dropdown-toggle" href="#"  data-toggle="dropdown">
                        <div class="media-object border border-purple br64 bw2 p2">
                            <img class="br64" src="<?php echo \think\Session::get('cps_user_head_img'); ?>" style="max-width: 45px;">
                        </div>
                    </a>
                </div>
                <button type="button" class="dropdown-toggle" data-toggle="dropdown" style="float: left;">
                    <?php echo \think\Session::get('cps_user_name'); ?> ▼
                </button>
                <ul class="dropdown-menu media-list" role="menu" style="min-width: 100px;">
                    <li class="p15 pb10">
                        <ul class="list-unstyled">
                            <li><a href="/index/login/login_out">退出登录</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</header>

<!-- Start: Main -->
<div id="main">

    <!-- Start: Sidebar -->
    <aside id="sidebar_left">
        <div class="sidebar-menu">
            <!--菜单-->
            <ul class="nav">
    <li
        <?php if(\think\Request::instance()->controller() == 'Index'): ?>
            class="active"
        <?php endif; ?>
    >
        <a href="/index/index">
            <span class="glyphicons glyphicons-show_big_thumbnails"></span>
            <span class="sidebar-title">单条内容推广</span>
        </a>
    </li>
    <!--<li
        <?php if(\think\Request::instance()->controller() == 'Gather'): ?>
            class="active"
        <?php endif; ?>
    >
        <a href="/index/gather">
            <span class="glyphicons glyphicons-show_thumbnails"></span>
            <span class="sidebar-title">内容集合推广</span>
        </a>
    </li>-->
    <li
        <?php if(\think\Request::instance()->controller() == 'Channellist'): ?>
            class="active"
        <?php endif; ?>
    >
        <a href="/index/channelList">
            <span class="glyphicons glyphicons-list"></span>
            <span class="sidebar-title">渠道列表</span>
        </a>
    </li>
    <li
        <?php if(\think\Request::instance()->controller() == 'Statistics'): ?>
            class="active"
        <?php endif; ?>
    >
        <a href="/index/statistics">
            <span class="glyphicons glyphicons-charts"></span>
            <span class="sidebar-title">收益统计</span>
        </a>
    </li>
</ul>
        </div>
    </aside>

    <!-- Start: Content -->
    <section id="content_wrapper">
        <div id="topbar">
            <!--所在-->
            <div class="topbar-left">
    <ol class="breadcrumb">
        <li class="crumb-active"><a href="javascript:;"><?php echo $header_name; ?></a></li>
        <?php if(!empty($header_info)): ?>
        <li class="crumb-link"><a href="javascript:;"><?php echo $header_info; ?></a></li>
        <?php endif; ?>
    </ol>
</div>


        </div>
        <div id="content">
            <div class="row">
                <div class="col-md-12">
                    <div class="panel">
                        <div class="panel-body">
                            <div class=" paging_bs_normal">
                                <ul class="pagination pagination-sm">
                                    <li <?php if($type == 'today'): ?>class="active"<?php endif; ?>>
                                        <a href="/index/channelList/details/channel_id/<?php echo $channel_id; ?>?type=today">今天</a>
                                    </li>
                                    <li <?php if($type == 'yesterday'): ?>class="active"<?php endif; ?>>
                                        <a href="/index/channelList/details/channel_id/<?php echo $channel_id; ?>?type=yesterday">昨天</a>
                                    </li>
                                    <li <?php if($type == 'sevenday'): ?>class="active"<?php endif; ?>>
                                        <a href="/index/channelList/details/channel_id/<?php echo $channel_id; ?>?type=sevenday">近7天</a>
                                    </li>
                                    <li <?php if($type == 'thirtyday'): ?>class="active"<?php endif; ?>>
                                        <a href="/index/channelList/details/channel_id/<?php echo $channel_id; ?>?type=thirtyday">近30天</a>
                                    </li>
                                    <li id="custom" <?php if($type == 'custom'): ?>class="active"<?php endif; ?>>
                                        <a href="javascript:;">自定义时间</a>
                                    </li>
                                </ul>
                                <div class="form-group" id="custom-html" <?php if($type != 'custom'): ?>style="display: none;"<?php endif; ?>>
                                    <form action="/index/channelList/details/channel_id/<?php echo $channel_id; ?>" method="get">
                                    <div class="col-lg-5" style="line-height: 30px;">
                                        <input class="form-control input-sm" id="starttime" name="starttime" type="text" placeholder="开始时间" value="<?php echo $starttime; ?>" style="width: 20%; float: left; " />
                                        <input class="form-control input-sm" id="endtime" name="endtime" type="text" placeholder="结束时间" value="<?php echo $endtime; ?>" style="width: 20%; float: left; margin: 0 20px;" />
                                        <input type="text" name="type" value="custom" style="display: none;" />
                                        <button type="submit" class="btn btn-alert">查询数据</button>
                                    </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="topbar-left">
                <ol class="breadcrumb">
                    <li class="crumb-active"><a href="javascript:;">收益</a></li>
                </ol>
            </div>
            <div class="row">
                <div class="col-md-12">
                    <div class="panel">
                        <div class="panel-body">
                            <div class="table-responsive">
                                <?php if($type == 'today' || $type == 'yesterday'): ?>
                                    <table class="table table-bordered">
                                        <thead>
                                        <tr>
                                            <th style="width: 6%;">时间</th>
                                            <?php $__FOR_START_806139973__=0;$__FOR_END_806139973__=12;for($i=$__FOR_START_806139973__;$i < $__FOR_END_806139973__;$i+=1){ ?>
                                            <th>
                                                <?php echo $i; ?>点
                                            </th>
                                            <?php } ?>
                                        </tr>
                                        </thead>
                                        <tbody>
                                        <tr>
                                            <td style="width: 6%;">收益</td>
                                            <?php $__FOR_START_1449079118__=0;$__FOR_END_1449079118__=12;for($i=$__FOR_START_1449079118__;$i < $__FOR_END_1449079118__;$i+=1){ ?>
                                            <th>
                                                <?php echo intval($earnings_data[$i]); ?>元
                                            </th>
                                            <?php } ?>
                                        </tr>
                                        </tbody>
                                    </table>
                                    <table class="table table-bordered">
                                        <thead>
                                        <tr>
                                            <th style="width: 6%;">时间</th>
                                            <?php $__FOR_START_1887714186__=12;$__FOR_END_1887714186__=24;for($i=$__FOR_START_1887714186__;$i < $__FOR_END_1887714186__;$i+=1){ ?>
                                            <th>
                                                <?php echo $i; ?>点
                                            </th>
                                            <?php } ?>
                                        </tr>
                                        </thead>
                                        <tbody>
                                        <tr>
                                            <td style="width: 6%;">收益</td>
                                            <?php $__FOR_START_2102048096__=12;$__FOR_END_2102048096__=24;for($i=$__FOR_START_2102048096__;$i < $__FOR_END_2102048096__;$i+=1){ ?>
                                            <th>
                                                <?php echo intval($earnings_data[$i]); ?>元
                                            </th>
                                            <?php } ?>
                                        </tr>
                                        </tbody>
                                    </table>
                                <?php else: if(is_array($earnings_data) || $earnings_data instanceof \think\Collection || $earnings_data instanceof \think\Paginator): $i = 0; $__LIST__ = $earnings_data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$earning): $mod = ($i % 2 );++$i;?>
                                    <table class="table table-bordered">
                                        <thead>
                                        <tr>
                                            <th>时间</th>
                                            <?php if(is_array($earning) || $earning instanceof \think\Collection || $earning instanceof \think\Paginator): $i = 0; $__LIST__ = $earning;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$ea): $mod = ($i % 2 );++$i;?>
                                            <th>
                                                <?php echo $ea['month']; ?>月<?php echo $ea['day']; ?>日
                                            </th>
                                            <?php endforeach; endif; else: echo "" ;endif; ?>
                                        </tr>
                                        </thead>
                                        <tbody>
                                        <tr>
                                            <td>收益</td>
                                            <?php if(is_array($earning) || $earning instanceof \think\Collection || $earning instanceof \think\Paginator): $i = 0; $__LIST__ = $earning;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$ea): $mod = ($i % 2 );++$i;?>
                                            <th>
                                                <?php echo $ea['num']; ?>元
                                            </th>
                                            <?php endforeach; endif; else: echo "" ;endif; ?>
                                        </tr>
                                        </tbody>
                                    </table>
                                    <?php endforeach; endif; else: echo "" ;endif; endif; ?>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="clearfix"></div>
            </div>
            <div class="topbar-left">
                <ol class="breadcrumb">
                    <li class="crumb-active"><a href="javascript:;">访问量</a></li>
                </ol>
            </div>
            <div class="row">
                <div class="col-md-12">
                    <div class="panel">
                        <div class="panel-body">
                            <div class="table-responsive">
                                <?php if($type == 'today' || $type == 'yesterday'): ?>
                                    <table class="table table-bordered">
                                        <thead>
                                        <tr>
                                            <th style="width: 6%;">时间</th>
                                            <?php $__FOR_START_1047753484__=0;$__FOR_END_1047753484__=12;for($i=$__FOR_START_1047753484__;$i < $__FOR_END_1047753484__;$i+=1){ ?>
                                            <th>
                                                <?php echo $i; ?>点
                                            </th>
                                            <?php } ?>
                                        </tr>
                                        </thead>
                                        <tbody>
                                            <tr>
                                                <td style="width: 6%;">访问</td>
                                                <?php $__FOR_START_1399110105__=0;$__FOR_END_1399110105__=12;for($i=$__FOR_START_1399110105__;$i < $__FOR_END_1399110105__;$i+=1){ ?>
                                                <th>
                                                    <?php echo intval($visits_data[$i]); ?>
                                                </th>
                                                <?php } ?>
                                            </tr>
                                        </tbody>
                                    </table>
                                    <table class="table table-bordered">
                                        <thead>
                                        <tr>
                                            <th style="width: 6%;">时间</th>
                                            <?php $__FOR_START_1680206225__=12;$__FOR_END_1680206225__=24;for($i=$__FOR_START_1680206225__;$i < $__FOR_END_1680206225__;$i+=1){ ?>
                                            <th>
                                                <?php echo $i; ?>点
                                            </th>
                                            <?php } ?>
                                        </tr>
                                        </thead>
                                        <tbody>
                                        <tr>
                                            <td style="width: 6%;">访问</td>
                                            <?php $__FOR_START_1774776724__=12;$__FOR_END_1774776724__=24;for($i=$__FOR_START_1774776724__;$i < $__FOR_END_1774776724__;$i+=1){ ?>
                                            <th>
                                                <?php echo intval($visits_data[$i]); ?>
                                            </th>
                                            <?php } ?>
                                        </tr>
                                        </tbody>
                                    </table>
                                <?php else: if(is_array($visits_data) || $visits_data instanceof \think\Collection || $visits_data instanceof \think\Paginator): $i = 0; $__LIST__ = $visits_data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$visit): $mod = ($i % 2 );++$i;?>
                                    <table class="table table-bordered">
                                        <thead>
                                        <tr>
                                            <th style="width: 6%;">时间</th>
                                            <?php if(is_array($visit) || $visit instanceof \think\Collection || $visit instanceof \think\Paginator): $i = 0; $__LIST__ = $visit;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vi): $mod = ($i % 2 );++$i;?>
                                            <th>
                                                <?php echo $vi['month']; ?>月<?php echo $vi['day']; ?>日
                                            </th>
                                            <?php endforeach; endif; else: echo "" ;endif; ?>
                                        </tr>
                                        </thead>
                                        <tbody>
                                        <tr>
                                            <td>访问</td>
                                            <?php if(is_array($visit) || $visit instanceof \think\Collection || $visit instanceof \think\Paginator): $i = 0; $__LIST__ = $visit;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vi): $mod = ($i % 2 );++$i;?>
                                            <th>
                                                <?php echo $vi['num']; ?>
                                            </th>
                                            <?php endforeach; endif; else: echo "" ;endif; ?>
                                        </tr>
                                        </tbody>
                                    </table>
                                    <?php endforeach; endif; else: echo "" ;endif; endif; ?>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="clearfix"></div>
            </div>
        </div>
    </section>

</div>
<!-- End #Main -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->

<!-- jQuery -->
<script type="text/javascript" src="/static/vendor/jquery/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="/static/vendor/jquery/jquery_ui/jquery-ui.min.js"></script> <!-- Bootstrap -->
<script type="text/javascript" src="/static/vendor/bootstrap/js/bootstrap.min.js"></script>

<!-- Flot Plugins -->
<script type="text/javascript" src="/static/vendor/plugins/jqueryflot/jquery.flot.min.js"></script>

<script type="text/javascript" src="/static/js/ajax.js"></script>

<script type="text/javascript" src="/static/js/main.js"></script>
<script type="text/javascript" src="/static/system/layer/layer.js"></script>
<script type="text/javascript" src="/static/system/ajaxfileupload.js"></script>
<script type="text/javascript" src="/static/system/bootstrap-datepicker.js"></script>
<script type="text/javascript" src="/static/system/jquery.form.js"></script>
<script type="text/javascript" src="/static/system/form.js"></script>

<script type="text/javascript">
    jQuery(document).ready(function () {
        Core.init();
    });
</script>
<script type="text/javascript">
    $("#starttime,#endtime").datepicker();
    $('#custom').click(function(){
        $('.pagination li').removeClass('active');
        $(this).addClass('active');
        $('#custom-html').show();
    });
</script>

</body>
</html>
